#include "protocol.h"
#include <cstring>
#include <string>
namespace AsyTask{
    	int HttpClient::append(const void* buf,size_t *size){
		return 1;
	}

	int HttpClient::encode(struct iovec vectors[],int max){
        auto p=malloc(20);
        std::string s="hello world";
        memcpy(p,s.data(),s.size());
        vectors[0].iov_base=p;
        vectors[0].iov_len=s.size();
        return 1;
	}
}